package com.ems.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ems.vo.BaseVo;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 设备
 * </p>
 *
 * @author WuZH
 * @since 2024-05-08
 */
@Data
@TableName ( "device_info" )
@ApiModel ( value = "DeviceEntity对象", description = "设备" )
public class DeviceEntity extends BaseVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty ( "id" )
    @TableId ( value = "id", type = IdType.INPUT )
    private String id;

    @ApiModelProperty ( "电站Id" )
    @TableField ( "stationId" )
    private String stationId;

    @ApiModelProperty ( "1：主设备;2：从设备" )
    @TableField ( "type" )
    private Integer type;

    @ApiModelProperty ( "父设备Id" )
    @TableField ( "parentId" )
    private String parentId;

    @ApiModelProperty ( "设备地址" )
    @TableField ( "deviceAddress" )
    private String deviceAddress;

    @ApiModelProperty ( "设备名称" )
    @TableField ( "deviceName" )
    private String deviceName;

    @ApiModelProperty ( "设备用户名" )
    @TableField ( "userName" )
    private String userName;

    @ApiModelProperty ( "设备密码" )
    @TableField ( "password" )
    private String password;

    @TableField ( "createTime" )
    private Date createTime;

    @TableField ( "changeTime" )
    private Date changeTime;

    @TableField("connectStatus")
    private Integer connectStatus;

    @ApiModelProperty ( "离并网设置，1：离网；0：并网" )
    @TableField("offGridStatus")
    private Integer offGridStatus;

    @ApiModelProperty ( "充放电功率" )
    @TableField("chargeDisPower")
    private String chargeDisPower;

    @TableField ( "isUsed" )
    private Integer isUsed;


}
